package com.inool.common.result;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    WRONG_PASSWORD(2011,"密码错误"),
    NO_USER(2012,"用户不存在"),
    SERVICE_ERROR(2012,"服务异常"),
    DATA_ERROR(204,"数据异常"),
    LOGIN_AUTH(208,"未登录"),
    PERMISSION(209,"没有权限"),
    TOKEN_EXPIRED(210,"token过期"),
    TOKEN_INVALID(211,"token无效"),
    TOKEN_ERROR(213,"未找到该考勤记录");
    
    private Integer code;
    private String message;


}
